import { Gateway, GatewayPart, getGateway } from "@/droplet-bus/core.define";
import { ENUM_APP, ENUM_APP_PORT_REST, ENUM_APP_PORT_TCP } from "@/droplet-bus/core.define";

export const OceanGateway: GatewayPart = {
  app: ENUM_APP.OCEAN_GATEWAY,
  port_tcp: ENUM_APP_PORT_TCP.OCEAN_GATEWAY,
  port_rest: ENUM_APP_PORT_REST.OCEAN_GATEWAY,
};

export const GateDefaultGateway: Gateway = getGateway(OceanGateway, "ocean_gate");

/** 某个服务中的日志情况 */
export type SystemStat = {
  /** 日志体积/bytes */
  logs: number;

  /** 服务进程的内存/bytes */
  memory: number;
};
